package com.sora.sora.message.service;

import javax.mail.MessagingException;
import java.io.File;
import java.util.List;
import java.util.Map;

public interface MailService {

    int sendEmail(String sender, Integer uid, String title, String content);

    int sendEmail(String sender, String recipient, String title, String content);

    int sendEmail(String sender, List<Integer> recipient, String title, String content);

    int sendEmail(String sender, List<Integer> recipient, String title, String content, Map<String, File> map, String encode) throws MessagingException;

    int sendEmail(String sender, List<Integer> recipient, String title, String content, Map<String, File> map) throws MessagingException;

    boolean register(String recipient, String sessionId);

    boolean register(String recipient);

    boolean findPassword(String email, String sessionId);

    boolean emailExist(String email);

    boolean infoPasswordChange(String email);

    boolean infoPasswordChange(int uid);

    boolean infoEmailChange(int uid, String oldEmail);
}
